\chapter{Extraction of Telephony Statistics}

L3DGEWorld Asterisk Management System (LAMS) provides network administrators, VoIP and Internet service providers a way of monitoring a cluster of VoIP servers. 

A standard Asterisk server has been set up with simulated calls coming in and out  to and from any kinds of numbers. One task that LAMS needs  to achieve is to extract the telephony and server statistics from Asterisk. 

 

\section{Overview of Software Modules}

To ease the asterisk information extraction development process, scripts were divided into three distinct purposes. AMI-scripts, CDR-scripts and Gmetric scripts. 

\section{AMI-scripts}

Scripts that interact with the Asterisk Manager Interface.

\section{CDR-scripts}

Scripts that use the Call Records to extract information.

\section{Gmetric-grazer Scripts}

Scripts that call ami and cdr scripts then inject that information into the ganglia system. 


A diagram of the scripts the information flow is shown below. 
\begin{figure}[htp]
\centering
\includegraphics[scale=0.6]{diagrams/asterisk_scripts.pdf}
\caption{The different software modules to extract telephony statistics from Asterisk}
\end{figure} 

The functionality of these scripts can be used to create one daemon that sits on the PBX server. 